package com.ruoyi.cinema.service.impl;

import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.cinema.mapper.FilmStillMapper;
import com.ruoyi.cinema.domain.FilmStill;
import com.ruoyi.cinema.service.IFilmStillService;

/**
 * 影片剧照Service业务层处理
 *
 * @author HHAOYU
 * @date 2020-12-07
 */
@Service
public class FilmStillServiceImpl extends ServiceImpl<FilmStillMapper, FilmStill> implements IFilmStillService  {
    @Autowired
    private FilmStillMapper filmStillMapper;

    /**
     * 查询影片剧照
     *
     * @param id 影片剧照ID
     * @return 影片剧照
     */
    @Override
    public FilmStill selectFilmStillById(Long id)
    {
        return filmStillMapper.selectFilmStillById(id);
    }

    /**
     * 查询影片剧照列表
     *
     * @param filmStill 影片剧照
     * @return 影片剧照
     */
    @Override
    public List<FilmStill> selectFilmStillList(FilmStill filmStill)
    {
        return filmStillMapper.selectFilmStillList(filmStill);
    }

    /**
     * 新增影片剧照
     *
     * @param filmStill 影片剧照
     * @return 结果
     */
    @Override
    public int insertFilmStill(FilmStill filmStill)
    {
        return filmStillMapper.insertFilmStill(filmStill);
    }

    /**
     * 修改影片剧照
     *
     * @param filmStill 影片剧照
     * @return 结果
     */
    @Override
    public int updateFilmStill(FilmStill filmStill)
    {
        return filmStillMapper.updateFilmStill(filmStill);
    }

    /**
     * 批量删除影片剧照
     *
     * @param ids 需要删除的影片剧照ID
     * @return 结果
     */
    @Override
    public int deleteFilmStillByIds(Long[] ids)
    {
        return filmStillMapper.deleteFilmStillByIds(ids);
    }

    /**
     * 删除影片剧照信息
     *
     * @param id 影片剧照ID
     * @return 结果
     */
    @Override
    public int deleteFilmStillById(Long id)
    {
        return filmStillMapper.deleteFilmStillById(id);
    }
}
